package com.ludaxu.zhbj.domain;

import java.util.ArrayList;

/**
 * 侧边栏的对象,侧边栏的每一项 用网络数据封装给他
 * 
 * @author ludaxu
 * 
 */
public class NewsData {
	// 字段名字必须要和服务器的一致,方便Gson解析
	public int retcode;
	public ArrayList<NewsMenuData> data;

	/**
	 * 侧边栏数据
	 * 
	 * @author ludaxu
	 * 
	 */
	public class NewsMenuData {
		// 也可用int,用String是防止id过长,超过int的接收范围
		public String id;
		public String title;
		public int type;
		public String url;
		public ArrayList<NewsTabsData> children;

		@Override
		public String toString() {
			return "NewsMenuData [title=" + title + ", children=" + children
					+ "]";
		}

	}

	/**
	 * 新闻页面下11个子页签的数据对象
	 * 
	 * @author ludaxu
	 * 
	 */
	public class NewsTabsData {
		public String id;
		public String title;
		public int type;
		public String url;

		@Override
		public String toString() {
			return "NewsTabsData [title=" + title + "]";
		}

	}

	@Override
	public String toString() {
		return "NewsData [data=" + data + "]";
	}

}
